package com.ruoyi.common.utils.pdf;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class HtmlToPDFUtil {

    public static String readTextFromFile(String fileName) throws IOException {
        StringBuffer sb = new StringBuffer();
        BufferedReader br = new BufferedReader(new FileReader(fileName));
        String content;
        while ((content = br.readLine()) != null) {
            sb.append(content);
        }
        return sb.toString();
    }
}
